﻿using Shop.Model.Stock;

namespace Shop.Collect
{
    public interface IGoodsStockCollect
    {
        Dictionary<long, int> GetStocks (long goodsId);

        bool AddStock (StockAdd add);

        Result[] GetStocks<Result> (long[] goodsId) where Result : class, new();

        void InitStock (long goodsId, long userId, Dictionary<long, int> stock);

        int GetStock (long skuId);

        void LockStock (Dictionary<long, int> set);
    }
}